package com.recharge.common.annotation;

import com.recharge.common.enums.OperationLogType;

import java.lang.annotation.*;

/**
 * Created by IntelliJ IDEA
 *  使用模糊匹配对操作日志进行记录
 * @author kui
 * @date 2018/9/12
 */
//@OperationLogDetail(detail = "通过手机号[{{tel}}]获取用户名",operationType = OperationType.SELECT)
@Documented
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface OperationLogDetail {

    /**
     * 方法描述,可使用占位符获取参数 可用变量: 1. {username} 2. {realName}
     */
    String detail() default "";

    /**
     * 操作类型(enum):主要是select,insert,update,delete
     */
    OperationLogType operationType() default OperationLogType.UNKNOWN;

}